Skip to content

net: ipa: add Qualcomm SC8180X (IPA v4.1) support and SoC DT node - #203

Open
robertijtsma wants to merge 4 commits into
linux-surface:spx/v7.3from
robertijtsma:spx-net-ipa-v4.1
Open

robertijtsma wants to merge 4 commits into
linux-surface:spx/v7.3from
robertijtsma:spx-net-ipa-v4.1

Conversation

@robertijtsma

Copy link
Copy Markdown

Adds Qualcomm IPA v4.1 support for SC8180X (e.g. Microsoft Surface Pro X with integrated Snapdragon X24 4G LTE modem) as a clean 4-commit series:

  1. dt-bindings: net: qcom,ipa: add qcom,sc8180x-ipa compatible: documents qcom,sc8180x-ipa in Documentation/devicetree/bindings/net/qcom,ipa.yaml.
  2. net: ipa: add IPA v4.1 register definitions: adds drivers/net/ipa/reg/ipa_reg-v4.1.c (ipa_regs_v4_1) and maps IPA_VERSION_4_1 to gsi_regs_v4_0.
  3. net: ipa: add SC8180X (IPA v4.1) configuration data: adds drivers/net/ipa/data/ipa_data-v4.1.c (ipa_data_v4_1, adapted from downstream Qualcomm IPA v4.1 / Robin Snyders' SC8180X tables for Linux 7.3) and binds qcom,sc8180x-ipa in ipa_main.c.
  4. arm64: dts: qcom: sc8180x: add IPA node: adds the disabled ipa@1e40000 SoC node to sc8180x.dtsi (using existing modem_smp2p_ipa_in / modem_smp2p_ipa_out and MASTER_IPA / SLAVE_IPA_CFG interconnects) so board DTS files can enable IPA with their own firmware-name and memory-region.

Verification

  • All 4 commits pass scripts/checkpatch.pl with 0 errors and 0 style warnings.
  • drivers/net/ipa/ipa.ko compiles cleanly against 7.3.1-1-surface with both ipa_regs_v4_1 and ipa_data_v4_1 linked.
  • sc8180x.dtsi preprocesses and compiles cleanly with dtc (0 errors, 0 warnings on ipa@1e40000).
  • Live-tested on Microsoft Surface Pro X SQ2 (SC8180X, Snapdragon X24 LTE modem) with rmnet_ipa0 (MAPv4), ModemManager qcom-soc, and multiplexed qmapmux0.0 4G LTE data traffic.

Document the Qualcomm SC8180X (IPA v4.1) compatible string in the
Qualcomm IPA binding.

Signed-off-by: robertijtsma <37256770+robertijtsma@users.noreply.github.com>
Add the IPA v4.1 register table (ipa_regs_v4_1) and map IPA_VERSION_4_1
to gsi_regs_v4_0 so SC8180X IPA v4.1 hardware can be driven by the
Qualcomm IPA driver.

Signed-off-by: robertijtsma <37256770+robertijtsma@users.noreply.github.com>
Add the SC8180X (IPA v4.1) endpoint, resource group, shared memory,
IMEM (0x146bd000), and backward-compatibility configuration table
(ipa_data_v4_1) and bind it to the qcom,sc8180x-ipa compatible.

Adapted from downstream Qualcomm IPA v4.1 / Robin Snyders' SC8180X
tables for Linux 7.3's ipa_mem_data layout.

Tested on Microsoft Surface Pro X SQ2 (SC8180X, Snapdragon X24 LTE
modem) with rmnet_ipa0 MAPv4 and ModemManager qcom-soc QMAP bearers.

Signed-off-by: robertijtsma <37256770+robertijtsma@users.noreply.github.com>
Add the disabled IPA v4.1 (ipa@1e40000) SoC node to sc8180x.dtsi with
its SMMU streams, register regions, GIC/SMP2P interrupts, RPMh core
clock, interconnects, AOSS QMP handle, and SMP2P SMEM states so board
DTS files can enable IPA with their board-specific firmware-name and
reserved memory region.

Signed-off-by: robertijtsma <37256770+robertijtsma@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant